package com.loop.homework.phone;

public class Phone {
    private String brand;
    private double prince;
    private final int size = 6;

    public Phone() {
    }

    public Phone(String brand, double prince) {
        this.brand = brand;
        this.prince = prince;
    }

    public int getSize() {
        return size;
    }

    public void call(){
        System.out.println("打电话");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrince() {
        return prince;
    }

    public void setPrince(double prince) {
        this.prince = prince;
    }

    //定义手机的功能
    public void sendMessage(){
        System.out.println("发短信");
    }
    public void playGame(){
        System.out.println("玩游戏");
    }
}
